package com.nervenets.web.controller.user;

import com.nervenets.Global;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class ValidationCodeMobileParams implements Serializable {
    @ApiModelProperty(value = "手机号码", required = true)
    @NotNull(message = "不能为空")
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的手机号码")
    private String mobile;
    @ApiModelProperty(value = "是否检测注册")
    private boolean checkRegister;
}
